/**
 * Created by yifangts on 2020/9/23.
 */
import Vue from 'vue'
const context = require.context('./globalComps', false, /\.vue$/)
context.keys().forEach((filePath) => {
  const componentName = filePath.replace(/^\.\/(.*)\.\w+$/, '$1')
  const componentValue = context(filePath)
  Vue.component(componentName, componentValue.default)
})
